
<?php include display('header'); ?>

<script src='<?php echo SITE_URL?>editor/kindeditor.js' type='text/javascript'></script>
<script src="./admin/javascript/article.js" type="text/javascript"></script>


<div class='nav_info'>
<div class='info' onclick='stab(1);'><img src="./images/system/icon/34.gif"/><b>基本信息</b></div>
<div class='info2' onclick='stab(2);'><img src="./images/system/icon/06.gif"/><b>其它设置</b></div>
</div>


<div style="padding: 2px;">
<div id="tab_container">
<div class="right_box_content" id="stab_1">
<form action="<?php echo SCRIPT_NAME?>?m=article&a=new&do=addarticle" method='POST' id='form'>

<input type="hidden" name="datas[uid]" value="<?=$user_id?>">

<div class="item">
<div class="item_title">所属栏目</div>
<div class="item_content">
<div>
<select name="datas[cid]" class="tp">
<option value="0">请选择栏目</option><?php if(is_array($category)) { foreach($category as $v) { if($v['attribute']==0) { ?>
<option style="color:blue" value="0">&nbsp;<?=$v['name']?></option>
<?php } else { ?>
<option value="<?=$v['id']?>" <?php if($v['id']==$cat) { ?>selected<?php } ?>>&nbsp;<?=$v['name']?></option>
<?php } } } ?></select>
<span class="c_red">*</span><span id="check_column" class="error"></span>
</div>
</div>
</div>

<div class="item">
<div class="item_title" style="color:red;">标&nbsp;&nbsp;题</div>
<div class="item_content">
<input type="text" name="datas[title]" class="tp sinput">
&nbsp;&nbsp;&nbsp;&nbsp;标题颜色&nbsp;&nbsp;<input type="text" name="datas[title_color]" class="tp5 sinput" id="color" onclick="colorSelect();">
</div>
</div>

<div class="item">
<div class="item_title">缩略图</div>
<div class="item_content">
<input type="text" name="datas[thumb_pic]" class="tp sinput" id="thumb_pic" onmouseover="article.viewThumb('show');" onmouseout="article.viewThumb('hide');" readonly>
<img src="" id="view_thumb" class="view_thumb hide">
<a class="slbutton" href="javascript:void(0);" onclick="article.thumbUpload();"><input type="button" class="srbutton" value="上传"/></a>（系统会自动生成缩略图）
</div>
</div>

<div class="item">
<div class="item_title">TAG标签</div>
<div class="item_content">
<input type="text" name="datas[tags]" id="tags" class="tp sinput">（多个tag之间请用空格分隔）
</div>
</div>

<div class="item">
<div class="item_title">作&nbsp;&nbsp;者</div>
<div class="item_content">
<input type="text" name="datas[author]" class="tp sinput" id="author">
<a class="slbutton" href="javascript:void(0);" onclick="sopen('author');"><input type="button" class="srbutton" value="选择"/></a>
</div>
</div>

<div class="select_af" id="s_author">
<div style="text-align:center;">
<a href="javascript:void(0);" onclick="sclose('author');">[关闭]</a>
</div>
<div class="select_af_af"><?php if(is_array($author_list)) { foreach($author_list as $a) { ?>
<a href="javascript:void(0);" onclick="sinsert(['author','<?=$a?>']);"><?=$a?></a>|<?php } } ?></div>
</div>

<div class="item">
<div class="item_title">来&nbsp;&nbsp;源</div>
<div class="item_content">
<input type="text" name="datas[from]" class="tp3 sinput" id="from">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;来源URL&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="datas[from_url]" class="tp3 sinput" id="from_url">
<a class="slbutton" href="javascript:void(0);" onclick="sopen('from');"><input type="button" class="srbutton" value="选择"/></a>
</div>
</div>

<div class="select_af2" id="s_from">
<div style="text-align:center;">
<a href="javascript:void(0);" onclick="sclose('from');">[关闭]</a>
</div>
<div class="select_af_af"><?php if(is_array($from_list)) { foreach($from_list as $f) { ?>
<a href="javascript:void(0);" onclick="sinsert(['from','<?=$f?>']);"><?=$f?></a>|<?php } } ?></div>
</div>

<div class="item">
<div class="item_title">设&nbsp;&nbsp;置</div>
<div class="item_content" style="position:relative;">
<input type="checkbox" name="datas[get_first_pic]" value="1" class="my_chk" checked>
提取第一个图片为缩略图&nbsp;&nbsp;
<input type="checkbox" name="datas[down_pic]" value="1" class="my_chk">
下载远程图片&nbsp;&nbsp;
<input type="checkbox" name="datas[index_top]" value="1" class="my_chk">
首页置顶&nbsp;&nbsp;
<input type="checkbox" name="datas[category_top]" value="1" class="my_chk">
栏目置顶&nbsp;&nbsp;
<input type="checkbox" name="datas[flash]" value="1" class="my_chk">
幻灯片&nbsp;&nbsp;
<input type="checkbox" name="datas[best]" value="1" class="my_chk">
精华&nbsp;&nbsp;
<input type="checkbox" name="datas[recommend]" value="1" class="my_chk">
推荐&nbsp;&nbsp;
<input type="checkbox" name="datas[validate]" value="1" checked class="my_chk">
审核&nbsp;&nbsp;
</div>
</div>

<div class="item">
<div class="item_title">内&nbsp;&nbsp;容 </div>
<div class="item_content" style="padding-top:5px;">
<span id="check_content" class="c_red"></span>
<script type="text/javascript">seditor(false);autoSave.run();</script>
<div style="height:410px;">
<textarea id="content" name="datas[content]" style="height:380px;width:848px;visibility:hidden;"></textarea>
<div id="autosave">
<div class="f_left" id="savemsg" style="padding:0 10px 0 5px;">120秒后自动保存</div>
<div class="f_left">
 <a href="javascript:void(0);" onclick="autoSave.suspend();">暂停</a> - 
 <a href="javascript:void(0);" onclick="autoSave.start();">开始</a> - 
 <a href="javascript:void(0);" onclick="autoSave.disable();">禁止</a> - 
 <a href="javascript:void(0);" onclick="autoSave.save();">立即保存</a>
</div>
<div class="f_right"><a href="javascript:void(0)" style="padding-right:5px" onclick="autoSave.recover();">恢复数据</a></div>
<div id="s_recover">
<a href="javascript:void(0)" onclick="sclose('recover')" style="text-align:right;">X</a>
<ul class="recover"><ul>
</div>
</div>
</div>
</div>
</div>

</div><!--/right_box_content-->


<div class="right_box_content hide" id="stab_2">

<div class="item">
<div class="item_title">副标题</div>
<div class="item_content">
<input type="text" name="datas[small_title]" class="tp sinput">
</div>
</div>

<div class="item">
<div class="item_title">所属省市</div>
<div class="item_content">
<select style="width:110px;" name="datas[province]" id="province" onchange="article.getCity();">
<option value="0"></option><?php if(is_array($province)) { foreach($province as $v) { ?>
<option value="<?=$v['id']?>">&nbsp;&nbsp;&nbsp;<?=$v['name']?></option><?php } } ?></select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;所属市&nbsp;&nbsp;&nbsp;&nbsp;
<select style="width:130px;" name="datas[city]" id="city"><option value="0"></option></select>
</div>
</div>

<div class="item">
<div class="item_title">所属专题</div>
<div class="item_content">
<div>
<input type="text" name="datas[sid]" class="tp sinput" id="special" readonly>
<a class="slbutton" href="javascript:void(0);" onclick="article.getSpecial();"><input type="button" class="srbutton" value="选择"/></a>
</div>
</div>
</div>

<div class="item">
<div class="item_title">关键词</div>
<div class="item_content">
<input type="text" name="datas[keywords]" class="tp sinput">（多个关键词之间请用空格分隔）
</div>
</div>

<div class="item">
<div class="item_title">内容摘要</div>
<div class="item_content" style="padding-top:5px;">
<textarea name="datas[description]" cols="68" rows="8"></textarea>
</div>
</div>

<div class="item">
<div class="item_title">评论选项</div>
<div class="item_content">
<input type="radio" name="datas[if_comment]" checked class="my_radio" value="1">允许评论&nbsp;&nbsp;
<input type="radio" name="datas[if_comment]" class="my_radio" value="0">禁止评论
</div>
</div>

<div class="item">
<div class="item_title">消费点数</div>
<div class="item_content">
<input type="text" name="datas[money]" class="tp2 sinput">
</div>
</div>

<div class="item">
<div class="item_title">阅读密码</div>
<div class="item_content">
<input type="text" name="datas[password]" class="tp2 sinput">
</div>
</div>

<div class="item">
<div class="item_title">发布时间</div>
<div class="item_content">
<input type="text" name="datas[post_time]" class="tp2 sinput" value='<?=$time?>'>（格式：2008-07-15 20:05:30）
</div>
</div>

<div class="item">
<div class="item_title">打开方式</div>
<div class="item_content">
<select name="datas[target]" class="tp2">
<option value="_bank">新窗口</option>
<option value="_parent">父窗口</option>
</select>
</div>
</div>

</div><!--/right_box_content-->

<div class="right_box_content">
<div class="item">
<div class="item_title">&nbsp;&nbsp;</div>
<div class="item_content" style="margin:20px 0;" id='tb_menu1'>
<div style="height:24px;line-height:24px;float:left;"><input type="checkbox" name="sitting[draft]" value="1" id="draft" class="my_chk">存为草稿&nbsp;&nbsp;</div>
<input type="submit" id='submit' style="display:none;"><input type="reset" id="reset" style="display:none;"/>
<a onclick="$('#submit').click();" href="javascript:void(0);"><img height="20" width="20" src="./images/system/icon/35.gif"/><b>发布 </b></a>
<a onclick="$('#reset').click();" href="javascript:void(0);"><img height="20" width="20" src="./images/system/icon/44.gif"/><b>清空 </b></a>
</div>
</div>
</form>
</div>

</div><!--/tab_container-->
</div>
<?php include display('footer'); ?>
